#Include DrawBase.ahk

class DrawBorder extends DrawBase {

  __New(color := 0xFFFFFFFF) {
    this.color := color
  }

  Draw(overlay, pos, *) {
    DrawBorder.Render(overlay, '', pos)
  }

  EndDraw(*) => []

  static Render(overlay, _, pos, *) {
    overlay.FillRectangle(1, 1, pos.w, pos.h, '0x9a000000')
    overlay.DrawRectangle(1, 1, pos.w - 1, pos.h - 1, 0xFFFFFFFF)
    overlay.DrawTextLayout('Esc to exit', 10, 10, 200, 40, 30, ,
      , ShinsOverlayClass.TextLayout('sItalic b800').SetUnderline(1, 1))
    overlay.DrawText('Left & right to undo redo.`nLbutton to draw.', 10, 50)
  }

}